<?php namespace Home\Controller;

use Framework\Kernel\Controller;
use Home\Model\Stu;

class IndexController extends Controller{
	
	public function index()
	{
		// $db = new db;
		// // $d = $db->execute('insert into stu set sname=?',['李小明']);
		// $db->table ='stu';
		// $d = $db->where('id>1')->limit(1)->select();
		
		$obj = new Stu;
		// $d = $obj->limit(1)->select(); 
		// p($d);
		// 
		$d = $obj->find(1);
		echo $d['sname'];
	}
}